<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>display: inline</title>
    <style>
        .inline {
            display: inline;
            width: 100px; /* 不生效 */
            height: 30px; /* 不生效 */
            background-color: lightgreen;
        }
    </style>
</head>
<body>

<div class="inline">内联元素1</div>
<div class="inline">内联元素2</div>
<div class="inline">内联元素3</div>
<div class="inline">内联元素4</div>
<div class="inline">内联元素5</div>
<div class="inline">内联元素6</div>

</body>
</html>